<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>测试数据</title>
</head>
<body>
	<div>
		<form method="post" action="getTestList.do">
			<table>
				<tr>
					<td colspan="3"><input type="text" name="name" /><input
						type="submit" value="查询"></td>
				</tr>
				<tr>
					<td>编号</td>
					<td>姓名</td>
					<td>时间</td>
				</tr>  
				<c:forEach items="${testList}" var="tlist">  
					<tr>  
						<td>${tlist.id}</td>
						<td>${tlist.name}</td>
						<td><fmt:formatDate value="${tlist.time}" /></td>
					</tr>
				</c:forEach>
			</table>
		</form>

		<div class="advert-area line" id="newDiv">
			<div class="tag">
				<p style="font-size: 16px;">区域选择：</p>
			</div>
			<div class="content">
				<select id="province" runat="server" name="province" size="1"
					style="font-size: 16px;"></select> <select id="city" runat="server"
					name="city" size="1" style="font-size: 16px;"></select> <select
					id="county" runat="server" name="county" size="1"
					style="font-size: 16px;"></select>&nbsp; <input type="button"
					style="width: 80px; height: 60px; margin-top: 26px;" value="添加"
					name="add" onclick="AddSelect()" />
			</div>
		</div>
	</div>
</body>
<script type="text/javascript" src="../static/js/jquery-1.12.4.js"></script>
<script type="text/javascript">
	function AddSelect(){
	     var newDiv = document.getElementById("newDiv");
	　　　　var div = document.createElement("div");
	　　　　div.innerHTML = "<div class='content'>"+
	     "<select id='province' runat='server' name='province' size='1' style='font-size: 16px;'></select>"+
	     "<select id='city' runat='server' name='city' size='1' style='font-size: 16px;'></select>"+
	     "<select id='county' runat='server' name='county' size='1' style='font-size: 16px;'></select>"+	     
         "</div>";
	　　　　newDiv.appendChild(div);
	}
</script>
</html>